package com.example.templateapp.ui.loading

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.example.templateapp.R
import com.example.templateapp.databinding.ActivityLoadingBinding
import com.example.templateapp.ui.foxhome.FoxHomeActivity
import com.example.templateapp.util.toActivity
import kotlin.concurrent.thread

class LoadingActivity : AppCompatActivity() {

    private lateinit var binding: ActivityLoadingBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_loading)

        thread {
            Thread.sleep(1000)
            toActivity(FoxHomeActivity::class.java)
            finish()
        }
    }
}